package service.impl;

import common.Exception.Results;
import dto.req.AdminRegisterReqDTO;
import dto.resp.AdminLoginRespDTO;
import dto.resp.AdminQueryWaitViewArticleRespDTO;
import entity.AdminDO;

import java.util.ArrayList;

/**
 * 管理员操作持久层
 */
public interface AdminServiceImpl {

    Results register(AdminRegisterReqDTO admin);

    Results<AdminLoginRespDTO> login(String username, String password);

    Results<ArrayList<AdminQueryWaitViewArticleRespDTO>> queryWaitViewArticleAll(Integer idx);

    Results viewArticle(Integer articleId);

    Results deleteArticle(Integer articleId);
}
